package com.aftersale.demo.mapper;

import com.aftersale.demo.pojo.AdminUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface AdminUserMapper{
    @Select("select id from admin_user where username=#{username} and password = #{password}")
    Integer getInfo(String username, String password);
    @Insert("insert into `admin_user`(username,password) values(#{username},#{password})")
    void register(String username,String password);
}
